To get your posts appearing in the correct order (usually newest at the top), we’ll use 11ty’s built-in date handling and a small tweak to your sidebar loop.

1. Ensure your posts have dates

Eleventy is smart about dates. It can get the date for a post in three ways:

  1. From the filename: If you name your file 2026-02-03-my-post.md, 11ty automatically assigns that date.

  2. From the Front Matter: You can manually set it like this:
    YAML

    title: My Post
    date: 2026-02-03

  3. From the file creation date: If you do neither, 11ty uses the date the file was created on your computer (this is less reliable).

---

2. Update the Sidebar (Sorting & Formatting)

Go back to your _includes/layout.njk file. We will modify the loop to reverse the order (newest first) and display the date next to the link.
Replace your